#ifndef BASEDIALOGWITHSHADOW_H
#define BASEDIALOGWITHSHADOW_H

#include <QPoint>
#include <QSize>
#include <QWidget>
#include "BaseWidgets_global.h"
#include "FramelessWidget.h"
#include "BaseDialog.h"
namespace UserManagementSystem {
//这个窗口主要用于点击之后弹出，包括底层带遮罩的窗口，上层弹窗

class BASEWIDGETS_EXPORT BaseDialogWithShadow : public FramelessWidget
{
    Q_OBJECT
public:
    ///@brief 构造函数，传递一下几个参数：父窗口，contentWidget的左上角位置和宽高
    explicit BaseDialogWithShadow(QWidget *parent = nullptr, QPoint pos=QPoint(30,30),QSize size=QSize(300,300));

    ///@brief 绘制圆角
    virtual void paintEvent(QPaintEvent *event) override;

    ///@brief 获得显示内容的窗口，对该窗口做操作
    BaseDialog* GetContentWidget()const;

public slots:
    void On_Close_Widgets();


private:
    ///@brief 用于显示内容的窗口
    UserManagementSystem::BaseDialog * m_contentWidget=nullptr;
};
}


#endif // BASEDIALOGWITHSHADOW_H
